﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="AuditVdb" targetNamespace="http://tempuri.org/AuditVdb.xsd" xmlns:mstns="http://tempuri.org/AuditVdb.xsd" xmlns="http://tempuri.org/AuditVdb.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections />
        <Tables />
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="AuditVdb" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="AuditVdb" msprop:Generator_UserDSName="AuditVdb">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ProcessInstance" msprop:Generator_TableClassName="ProcessInstanceDataTable" msprop:Generator_TableVarName="tableProcessInstance" msprop:Generator_TablePropName="ProcessInstance" msprop:Generator_RowDeletingName="ProcessInstanceRowDeleting" msprop:Generator_UserTableName="ProcessInstance" msprop:Generator_RowChangingName="ProcessInstanceRowChanging" msprop:Generator_RowEvHandlerName="ProcessInstanceRowChangeEventHandler" msprop:Generator_RowDeletedName="ProcessInstanceRowDeleted" msprop:Generator_RowEvArgName="ProcessInstanceRowChangeEvent" msprop:Generator_RowChangedName="ProcessInstanceRowChanged" msprop:Generator_RowClassName="ProcessInstanceRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="InstanceID" msprop:Generator_ColumnVarNameInTable="columnInstanceID" msprop:Generator_ColumnPropNameInRow="InstanceID" msprop:Generator_ColumnPropNameInTable="InstanceIDColumn" msprop:Generator_UserColumnName="InstanceID" type="xs:string" />
              <xs:element name="InstanceStartDate" msprop:Generator_ColumnVarNameInTable="columnInstanceStartDate" msprop:Generator_ColumnPropNameInRow="InstanceStartDate" msprop:Generator_ColumnPropNameInTable="InstanceStartDateColumn" msprop:Generator_UserColumnName="InstanceStartDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="InstanceEndDate" msprop:Generator_ColumnVarNameInTable="columnInstanceEndDate" msprop:Generator_ColumnPropNameInRow="InstanceEndDate" msprop:Generator_ColumnPropNameInTable="InstanceEndDateColumn" msprop:Generator_UserColumnName="InstanceEndDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="ProcessDefinitionID" msprop:Generator_ColumnVarNameInTable="columnProcessDefinitionID" msprop:Generator_ColumnPropNameInRow="ProcessDefinitionID" msprop:Generator_ColumnPropNameInTable="ProcessDefinitionIDColumn" msprop:Generator_UserColumnName="ProcessDefinitionID" type="xs:string" minOccurs="0" />
              <xs:element name="CurrentState" msprop:Generator_ColumnVarNameInTable="columnCurrentState" msprop:Generator_ColumnPropNameInRow="CurrentState" msprop:Generator_ColumnPropNameInTable="CurrentStateColumn" msprop:Generator_UserColumnName="CurrentState" type="xs:string" minOccurs="0" />
              <xs:element name="ProcessDefinitionName" msprop:Generator_ColumnVarNameInTable="columnProcessDefinitionName" msprop:Generator_ColumnPropNameInRow="ProcessDefinitionName" msprop:Generator_ColumnPropNameInTable="ProcessDefinitionNameColumn" msprop:Generator_UserColumnName="ProcessDefinitionName" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Stage" msprop:Generator_TableClassName="StageDataTable" msprop:Generator_TableVarName="tableStage" msprop:Generator_TablePropName="Stage" msprop:Generator_RowDeletingName="StageRowDeleting" msprop:Generator_UserTableName="Stage" msprop:Generator_RowChangingName="StageRowChanging" msprop:Generator_RowEvHandlerName="StageRowChangeEventHandler" msprop:Generator_RowDeletedName="StageRowDeleted" msprop:Generator_RowEvArgName="StageRowChangeEvent" msprop:Generator_RowChangedName="StageRowChanged" msprop:Generator_RowClassName="StageRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="StageID" msprop:Generator_ColumnVarNameInTable="columnStageID" msprop:Generator_ColumnPropNameInRow="StageID" msprop:Generator_ColumnPropNameInTable="StageIDColumn" msprop:Generator_UserColumnName="StageID" type="xs:string" />
              <xs:element name="StageSequence" msprop:Generator_ColumnVarNameInTable="columnStageSequence" msprop:Generator_ColumnPropNameInRow="StageSequence" msprop:Generator_ColumnPropNameInTable="StageSequenceColumn" msprop:Generator_UserColumnName="StageSequence" type="xs:int" minOccurs="0" />
              <xs:element name="StageName" msprop:Generator_ColumnVarNameInTable="columnStageName" msprop:Generator_ColumnPropNameInRow="StageName" msprop:Generator_ColumnPropNameInTable="StageNameColumn" msprop:Generator_UserColumnName="StageName" type="xs:string" minOccurs="0" />
              <xs:element name="StageStartDate" msprop:Generator_ColumnVarNameInTable="columnStageStartDate" msprop:Generator_ColumnPropNameInRow="StageStartDate" msprop:Generator_ColumnPropNameInTable="StageStartDateColumn" msprop:Generator_UserColumnName="StageStartDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="StageEndDate" msprop:Generator_ColumnVarNameInTable="columnStageEndDate" msprop:Generator_ColumnPropNameInRow="StageEndDate" msprop:Generator_ColumnPropNameInTable="StageEndDateColumn" msprop:Generator_UserColumnName="StageEndDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="InstanceID" msprop:Generator_ColumnVarNameInTable="columnInstanceID" msprop:Generator_ColumnPropNameInRow="InstanceID" msprop:Generator_ColumnPropNameInTable="InstanceIDColumn" msprop:Generator_UserColumnName="InstanceID" type="xs:string" minOccurs="0" />
              <xs:element name="StageType" msprop:Generator_ColumnVarNameInTable="columnStageType" msprop:Generator_ColumnPropNameInRow="StageType" msprop:Generator_ColumnPropNameInTable="StageTypeColumn" msprop:Generator_UserColumnName="StageType" type="xs:string" minOccurs="0" />
              <xs:element name="StageOwner" msprop:Generator_ColumnVarNameInTable="columnStageOwner" msprop:Generator_ColumnPropNameInRow="StageOwner" msprop:Generator_ColumnPropNameInTable="StageOwnerColumn" msprop:Generator_UserColumnName="StageOwner" type="xs:string" minOccurs="0" />
              <xs:element name="CurrentState" msprop:Generator_ColumnVarNameInTable="columnCurrentState" msprop:Generator_ColumnPropNameInRow="CurrentState" msprop:Generator_ColumnPropNameInTable="CurrentStateColumn" msprop:Generator_UserColumnName="CurrentState" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="ProcessInstanceVariables" msprop:Generator_TableClassName="ProcessInstanceVariablesDataTable" msprop:Generator_TableVarName="tableProcessInstanceVariables" msprop:Generator_TablePropName="ProcessInstanceVariables" msprop:Generator_RowDeletingName="ProcessInstanceVariablesRowDeleting" msprop:Generator_UserTableName="ProcessInstanceVariables" msprop:Generator_RowChangingName="ProcessInstanceVariablesRowChanging" msprop:Generator_RowEvHandlerName="ProcessInstanceVariablesRowChangeEventHandler" msprop:Generator_RowDeletedName="ProcessInstanceVariablesRowDeleted" msprop:Generator_RowEvArgName="ProcessInstanceVariablesRowChangeEvent" msprop:Generator_RowChangedName="ProcessInstanceVariablesRowChanged" msprop:Generator_RowClassName="ProcessInstanceVariablesRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="InstanceID" msprop:Generator_ColumnVarNameInTable="columnInstanceID" msprop:Generator_ColumnPropNameInRow="InstanceID" msprop:Generator_ColumnPropNameInTable="InstanceIDColumn" msprop:Generator_UserColumnName="InstanceID" type="xs:string" />
              <xs:element name="VariableName" msprop:Generator_ColumnVarNameInTable="columnVariableName" msprop:Generator_ColumnPropNameInRow="VariableName" msprop:Generator_ColumnPropNameInTable="VariableNameColumn" msprop:Generator_UserColumnName="VariableName" type="xs:string" />
              <xs:element name="VariableValue" msprop:Generator_ColumnVarNameInTable="columnVariableValue" msprop:Generator_ColumnPropNameInRow="VariableValue" msprop:Generator_ColumnPropNameInTable="VariableValueColumn" msprop:Generator_UserColumnName="VariableValue" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="StageVariables" msprop:Generator_TableClassName="StageVariablesDataTable" msprop:Generator_TableVarName="tableStageVariables" msprop:Generator_TablePropName="StageVariables" msprop:Generator_RowDeletingName="StageVariablesRowDeleting" msprop:Generator_UserTableName="StageVariables" msprop:Generator_RowChangingName="StageVariablesRowChanging" msprop:Generator_RowEvHandlerName="StageVariablesRowChangeEventHandler" msprop:Generator_RowDeletedName="StageVariablesRowDeleted" msprop:Generator_RowEvArgName="StageVariablesRowChangeEvent" msprop:Generator_RowChangedName="StageVariablesRowChanged" msprop:Generator_RowClassName="StageVariablesRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="StageID" msdata:Caption="InstanceID" msprop:Generator_ColumnVarNameInTable="columnStageID" msprop:Generator_ColumnPropNameInRow="StageID" msprop:Generator_ColumnPropNameInTable="StageIDColumn" msprop:Generator_UserColumnName="StageID" type="xs:string" />
              <xs:element name="VariableName" msprop:Generator_ColumnVarNameInTable="columnVariableName" msprop:Generator_ColumnPropNameInRow="VariableName" msprop:Generator_ColumnPropNameInTable="VariableNameColumn" msprop:Generator_UserColumnName="VariableName" type="xs:string" />
              <xs:element name="VariableValue" msprop:Generator_ColumnVarNameInTable="columnVariableValue" msprop:Generator_ColumnPropNameInRow="VariableValue" msprop:Generator_ColumnPropNameInTable="VariableValueColumn" msprop:Generator_UserColumnName="VariableValue" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ProcessInstance" />
      <xs:field xpath="mstns:InstanceID" />
    </xs:unique>
    <xs:unique name="Stage_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Stage" />
      <xs:field xpath="mstns:StageID" />
    </xs:unique>
    <xs:unique name="ProcessInstanceVariables_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ProcessInstanceVariables" />
      <xs:field xpath="mstns:InstanceID" />
      <xs:field xpath="mstns:VariableName" />
    </xs:unique>
    <xs:unique name="StageVariables_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:StageVariables" />
      <xs:field xpath="mstns:StageID" />
      <xs:field xpath="mstns:VariableName" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="ProcessInstanceStages" msdata:parent="ProcessInstance" msdata:child="Stage" msdata:parentkey="InstanceID" msdata:childkey="InstanceID" msprop:Generator_UserChildTable="Stage" msprop:Generator_ChildPropName="GetStageRows" msprop:Generator_ParentPropName="ProcessInstanceRow" msprop:Generator_UserRelationName="ProcessInstanceStages" msprop:Generator_RelationVarName="relationProcessInstanceStages" msprop:Generator_UserParentTable="ProcessInstance" />
      <msdata:Relationship name="ProcessInstanceVariables" msdata:parent="ProcessInstance" msdata:child="ProcessInstanceVariables" msdata:parentkey="InstanceID" msdata:childkey="InstanceID" msprop:Generator_UserChildTable="ProcessInstanceVariables" msprop:Generator_ChildPropName="GetProcessInstanceVariablesRows" msprop:Generator_ParentPropName="ProcessInstanceRow" msprop:Generator_UserRelationName="ProcessInstanceVariables" msprop:Generator_RelationVarName="relationProcessInstanceVariables" msprop:Generator_UserParentTable="ProcessInstance" />
      <msdata:Relationship name="StageVariables_Stage" msdata:parent="Stage" msdata:child="StageVariables" msdata:parentkey="StageID" msdata:childkey="StageID" msprop:Generator_UserChildTable="StageVariables" msprop:Generator_ChildPropName="GetStageVariablesRows" msprop:Generator_ParentPropName="StageRow" msprop:Generator_UserRelationName="StageVariables_Stage" msprop:Generator_RelationVarName="relationStageVariables_Stage" msprop:Generator_UserParentTable="Stage" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>